package com.baidu.myapplication;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;


public class AutoStartBroadcastReceiver extends BroadcastReceiver {
    static final String action_boot = "android.intent.action.BOOT_COMPLETED";

    @Override
    public void onReceive(Context context, Intent intent) {
        if (intent.getAction().equals(action_boot)) {
            Intent it = new Intent(context, DaemonService.class);
            context.startService(it);
        }
    }
}
